class Solution {
public:
    vector<string> findRepeatedDnaSequences(string s) {
        int n = s.size();
        vector<string>ans;
        map<string, int>mp;
        for (int i = 0; i <= n - 10; i++) {
            string temp;
            int cnt = 10;
            int idx = i;
            while (cnt--) {
                temp += s[idx++];
            }
            cout << "temp==" << temp << endl;
            mp[temp]++;
        }
        for (auto [x, y] : mp) {
            if (y >= 2) {
                ans.push_back(x);
            }
        }
        return ans;
    }
};

100